﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO_QLNS
{
    public class RatingDTO : TransferObject
    {
        public RatingDTO() { }

        public RatingDTO(RatingDTO rating)
        {
            _RatingID = rating.RatingID;
            _BookID = rating.BookID;
            _CustomerID = rating.CustomerID;
            _Rating = rating.Rating;
        }

        public RatingDTO(int ratingID, int bookID, int customerID, string rating)
        {
            _RatingID = ratingID;
            _BookID = bookID;
            _CustomerID = customerID;
            _Rating = rating;
        }

        private int _RatingID;
        public int RatingID
        {
            get { return _RatingID; }
            set { _RatingID = value; }
        }

        private int _BookID;
        public int BookID
        {
            get { return _BookID; }
            set { _BookID = value; }
        }

        private int _CustomerID;
        public int CustomerID
        {
            get { return _CustomerID; }
            set { _CustomerID = value; }
        }

        private string _Rating;
        public string Rating
        {
            get { return _Rating; }
            set { _Rating = value; }
        }
    }
}
